import Vue from 'vue'

import VueRouter from 'vue-router'

import article from '../viwe/article'
import register from '../viwe/register'
import list from '../viwe/list'
import login from '../viwe/login'
import NotFind from '../viwe/NotFind'
Vue.use(VueRouter)

const router = new VueRouter({

  routes: [
    {
      path: '/',
      redirect: login,
    },
    {
      path: '/login/:hehe',
      component: login,
    },
    {
      path: '/list',
      component: list,
    },
    {
      path: '/register',
      component: register,
    },
    {
      path: '/article',
      component: article,
    },
    {
      path: '*',
      component: NotFind,
    },
  ],
})

export default router
